package com.kh.pajx.sop.view.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.kh.pajx.sop.domain.GradeInfo;
import com.kh.pajx.sop.service.IGradeInfoService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

/**
 * 年级信息控制器
 * @author:	azzcsimp
 * @Createdate:	2014年8月18日 上午11:25:14
 */
@Controller
@Scope("prototype")
public class GradeAction extends ActionSupport{
	
	private static final long serialVersionUID = -2146751480515835965L;
	
	@Resource
	private IGradeInfoService gradeInfoService;
	
	private String sclId;
	
	public String list(){
		List<GradeInfo> gradeInfoList = gradeInfoService.findGradeList(sclId);
		ActionContext.getContext().put("gradeInfoList", gradeInfoList);
		return "list";
	}

	public String getSclId() {
		return sclId;
	}

	public void setSclId(String sclId) {
		this.sclId = sclId;
	}
	

}
